package com.example.demo.service;

import com.example.demo.entity.Orders;

public class PaymentServiceImpl implements PaymentService{
    @Override
    public boolean payProcess(Orders order) throws InterruptedException {
        // 模拟支付处理
        // 在实际应用中，这里会调用支付网关API
        System.out.println("Processing payment for order: " + order.getOrderId());
        System.out.println("Amount: " + order.getNumber());
        Thread.sleep(100);
        return true;
    }
}
